<!--
 * @Author: Rachel 943701297@qq.com
 * @Date: 2022-07-21 14:49:36
 * @LastEditors: Rachel 943701297@qq.com
 * @LastEditTime: 2022-07-21 21:53:04
 * @FilePath: \JSc:\Users\94370\Desktop\面向工作学习\html css\10-CSS 八（第九天）HTML5+CSS3\4-animation.html
 * @Description: 
 * 
 * Copyright (c) 2022 by Rachel 943701297@qq.com, All Rights Reserved. 
-->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>动画animation——水波纹</title>
    <style>
      body {
        position: relative;
        background-color: rgb(50, 54, 54);
      }
      .container {
        position: absolute;
        left: 100px;
        top: 50px;
        color: #fff;
      }
      .dott {
        width: 8px;
        height: 8px;
        background-color: #09f;
        border-radius: 50%;
      }
      .container div[class^="pause"] {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 8px;
        height: 8px;
        border-radius: 50%;
        box-shadow: 0 0 12px #009dfd;
        animation: pause 1.6s linear infinite;
      }
      .container div.pause2 {
        animation-delay: 0.5s;
      }
      .container div.pause2 {
        animation-delay: 1s;
      }
      @keyframes pause {
        70% {
          width: 20px;
          height: 20px;
          opacity: 1;
        }
        100% {
          width: 40px;
          height: 40px;
          opacity: 0;
        }
      }
    </style>
  </head>
  <body>
    <div class="container">
      <div class="dott"></div>
      <div class="pause1"></div>
      <div class="pause2"></div>
      <div class="pause3"></div>
    </div>
  </body>
</html>
